let fs = require('fs');

let data = fs.readFileSync("readMe.txt");
console.log(data.toString());
console.log("同步读取文件程序执行结束!");

fs.readFile('test.txt', function (err, data) {
    if (err) return console.error(err);
    console.log(data.toString());
});

console.log("异步读取文件程序执行结束!");